//
//  NextViewController.m
//  07-VC生命周期
//
//  Created by dllo on 16/7/22.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "NextViewController.h"

@interface NextViewController ()

@end

@implementation NextViewController
#pragma mark - 上个视图将要消失时会加载这个视图的loadView 和viewDidLoad viewWillAppear 当 上一个视图已经完全消失 这时这个视图将同时已经出现
- (void)loadView {
    [super loadView];
    NSLog(@"%@---%s",[self class],__FUNCTION__);
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"%@---%s",[self class],__FUNCTION__);
    self.view.backgroundColor = [UIColor brownColor];
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:YES];
    NSLog(@"%@---%s",[self class],__FUNCTION__);
}
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:YES];
    NSLog(@"%@---%s",[self class],__FUNCTION__);
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:YES];
    NSLog(@"%@---%s",[self class],__FUNCTION__);
}
- (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:YES];
    NSLog(@"%@---%s",[self class],__FUNCTION__);
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
